package com.sooth.system.menu.view;

import com.dream.system.annotation.View;
import com.dream.template.annotation.Conditional;
import com.dream.template.annotation.Order;
import com.dream.template.annotation.Sort;
import com.dream.template.condition.ContainsCondition;
import com.dream.template.condition.InCondition;
import com.sooth.system.menu.table.SysMenu;
import lombok.Data;

import java.util.List;

@Data
@View(SysMenu.class)
public class SysMenuDto {
    @Conditional(ContainsCondition.class)
    private String menuName;
    @Conditional(ContainsCondition.class)
    private String componentName;
    @Conditional(InCondition.class)
    private List<Integer> menuType;
    @Sort(Order.ASC)
    private Long parentId;
    @Sort(Order.ASC)
    private Integer orderNum;
}
